package com.itheima.dubbo.api;

import com.tanhua.model.domain.Settings;

/**
 * @Author Pan Rundong
 * @Date 2023-02-27 9:40
 * @Desc 设置Api
 */
public interface SettingsApi {
    /**
     * 根据Id查询
     * @Author: Pan Rundong
     * @param userId
     * @return com.tanhua.model.domain.Settings
     */
    Settings getById(Long userId);

    /**
     * 更改设置
     * @Author: Pan Rundong
     * @param settings
     * @return void
     */
    void update(Settings settings);

    /**
     * 保存设置
     * @Author: Pan Rundong
     * @param settings
     * @return void
     */
    void save(Settings settings);
}
